#include <BustaNetInternal.h>
Inheritance diagram for MPSpecialSandwich:
Public Member Functions | |
MPSpecialSandwich (int sendID, int receiveID, SpecialSandwich sSandwich) | |
CONSTRUCTOR. | |
int | getSenderID () |
Returns the identification number of the player sending the sandwich. | |
int | getReceiverID () |
Returns the identification number of the player receiving the sandwich. | |
SpecialSandwich | getSpecialSandwich () |
Returns the special sandwich sent. |
This message defines the details of a special sandwich when it is sent from one player to another. When a player receives this message he/she is able to determine who sent a special sandwich, who is receiving that special sandwich, and what the actual special sandwich is.
|
CONSTRUCTOR. Creates an instance of the special sandwich message.
|
|
Returns the identification number of the player receiving the sandwich. Returns an integer identification number of the player receiving the special sandwich from the sending player.
|
|
Returns the identification number of the player sending the sandwich. Returns an integer identification number of the player sending the special sandwich to an opponent.
|
|
Returns the special sandwich sent. Returns an enumeration of the special sandwich sent between players.
|